
lst = [90, 89, 88, 99, 82, 78, 66]

# 按从小到大进行排序选择排序
for i in range(len(lst)):
    for l in range(i+1,len(lst)):
        if lst[i]>lst[l]:
            lst[i],lst[l] = lst[l], lst[i]

print(lst)